<template>
  <div class="InquiryResults">
    <c-title :hide="false" text="车牌查询"></c-title>
    <div class="InquiryResults_content">
      <van-cell-group>
        <van-cell :border="false">
          <template #title>
            <div class="custom-title">车牌号</div>
          </template>
          <template #default>
            <div class="custom-value">粤A12345</div>
          </template>
        </van-cell>
        <van-cell :border="false">
          <template #title>
            <div class="custom-title">车架号</div>
          </template>
          <template #default>
            <div class="custom-value">ASD12213214</div>
          </template>
        </van-cell>
        <van-cell :border="false">
          <template #title>
            <div class="custom-title">品牌型号</div>
          </template>
          <template #default>
            <div class="custom-value">五菱mini</div>
          </template>
        </van-cell>
      </van-cell-group>
    </div>
    <div class="order_member">
      <div class="member">
        <div class="image">
          <img src="" alt="" />
        </div>
        <div class="member_r">
          <div class="member_r_t">KAKA</div>
          <div class="mobile">1380001380000</div>
        </div>
      </div>
      <div class="tagBox">
        <div class="tag">90后</div>
        <div class="tag">互联网行业</div>
      </div>
      <div class="member_detail">
        <div class="detail">推荐人：张三</div>
        <div class="detail_r">等级：高级</div>
        <div class="detail">注册时间：2023-11-23 11:21:28</div>
        <div class="detail_r">积分：5611</div>
        <div class="detail">余额：63221</div>
        <div class="detail_r">爱心值：63221</div>
      </div>
    </div>
    <div class="tabNavBox">
      <van-tabs v-model="active" background="#F5F5F5" line-width="30px">
        <van-tab title="优惠券" title-style="font-weight: bold;font-size: 0.94rem;"></van-tab>
        <van-tab title="订单" title-style="font-weight: bold;font-size: 0.94rem;"></van-tab>
      </van-tabs>
      <div class="coupon_list" v-if="active == '0'">
        <div class="lis_cloum">
          <div class="lis">
            <!-- <div class="posbg"></div> -->
            <!-- <div class="buttonPos">绑定车牌号</div> -->
            <div class="lis_l">
              <!-- <template > -->
              <div class="lis_l_t">
                <span class="small">¥</span>100
                <!-- <span class="small" v-if="item.coupon.discount_rule_str.is_rebate">折</span> -->
              </div>
              <div class="lis_l_b">满100元可用</div>
              <!-- </template> -->
            </div>
            <div class="lis_r">
              <div class="lis_r_title">新人15元大红包限时领取指定商品可用新人15元大红新人15元大商品可用新人15元大红新人15元大</div>
              <div class="list_r_type">加油券</div>
              <div class="list_r_time">2023.09.06-2023.12.14</div>
            </div>
          </div>
          <div class="lis_bottom">仅限粤A12345可用</div>
        </div>
      </div>
      <div class="orderList" v-if="active == '1'">
        <van-cell-group>
          <van-cell>
            <template #title>
              <div style="text-align: left;">订单号：JSKE56513214</div>
            </template>
            <template #default>
              <div style="font-weight: 500;font-size: 0.81rem;color: #00001C;">
                已支付
              </div>
            </template>
          </van-cell>
          <van-cell :border="false">
            <template #title>
              <div class="custom-title">时间</div>
            </template>
            <template #default>
              <div class="custom-value">2023-11-23 11:21:28</div>
            </template>
          </van-cell>
          <van-cell :border="false">
            <template #title>
              <div class="custom-title">车牌号</div>
            </template>
            <template #default>
              <div class="custom-value">粤A12345</div>
            </template>
          </van-cell>
          <van-cell :border="false">
            <template #title>
              <div class="custom-title">油号</div>
            </template>
            <template #default>
              <div class="custom-value">#95</div>
            </template>
          </van-cell>
        </van-cell-group>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 1
    };
  },
  activated() {}
};
</script>
<style lang="scss" scoped>
.InquiryResults {
  margin: 0.63rem 0.75rem;
  .tabNavBox {
    .coupon_list {
      box-sizing: border-box;
      overflow: hidden;
      padding-bottom: 3rem;
      .lis_cloum {
        position: relative;
        background: #ffffff;
        border-radius: 0.63rem;
        margin-top: 0.63rem;
        .lis_bottom {
          width: 100%;
          height: 2rem;
          line-height: 2rem;
          background: #ffffff;
          padding: 0 0.63rem;
          text-align: left;
          border-radius: 0 0 0.63rem 0.63rem;
          font-size: 0.75rem;
          color: #aaaab3;
        }
        .lis {
          position: relative;
          padding: 0.53rem 0;
          box-sizing: border-box;
          background: #ffffff;
          overflow: hidden;
          display: flex;
          justify-content: space-between;
          box-shadow: 0rem 0.19rem 0.47rem 0.03rem #f0f0f1;
          border-radius: 0.63rem 0.63rem 0.63rem 0.63rem;
          .buttonPos {
            position: absolute;
            z-index: 1;
            top: 1.8rem;
            left: 8rem;
            width: 5.88rem;
            height: 2rem;
            background: #f15353;
            border-radius: 1rem 1rem 1rem 1rem;
            text-align: center;
            line-height: 2rem;
            font-weight: 500;
            font-size: 0.88rem;
            color: #ffffff;
          }
          .lis_l {
            width: 6.88rem;
            border-right: 1px dashed #d6d6dc;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            .lis_l_t {
              font-size: 1.5rem;
              font-weight: bold;
              color: #ec2b2b;
              .small {
                font-size: 0.7rem;
              }
            }
            .lis_l_b {
              font-size: 0.75rem;
              color: #ec2b2b;
            }
          }
          .lis_r {
            flex: 1;
            padding: 0 0.72rem;
            box-sizing: border-box;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            .lis_r_title {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
              text-overflow: ellipsis;
              text-align: left;
            }
            .list_r_type {
              flex-shrink: 0;
              padding: 0 0.22rem;
              height: 1.13rem;
              line-height: 1.13rem;
              border-radius: 0.31rem;
              background: #fef1f1;
              font-size: 0.75rem;
              color: #ec2b2b;
              margin-top: 0.28rem;
            }
            .list_r_time {
              font-size: 0.75rem;
              color: #6e6e79;
              text-align: left;
              margin-top: 0.28rem;
            }
          }
        }
        .lis::after {
          content: "";
          position: absolute;
          width: 0.5rem;
          height: 0.5rem;
          left: 6.6rem;
          top: -0.2rem;
          background: #000;
          border-radius: 50%;
          // border: 0.03rem solid var(--wlborder);
          background: #f0f0f1;
        }
        .lis::before {
          content: "";
          position: absolute;
          width: 0.5rem;
          height: 0.5rem;
          left: 6.6rem;
          bottom: -0.2rem;
          background: #000;
          border-radius: 50%;
          // border: 0.03rem solid var(--wlborder);
          background: #f0f0f1;
        }
        .posbg {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          background: #000;
          opacity: 0.5;
        }
      }
      .lis_cloum:first-child {
        margin-top: 0.94rem;
      }
    }
    .orderList {
      padding: 1rem 0;
      box-sizing: border-box;
      .van-cell {
        padding: 10px 0.63rem;
        border-radius: 0.5rem;
      }
      .custom-title {
        font-size: 0.81rem;
        color: #6e6e79;
        text-align: left;
      }
      .custom-value {
        font-weight: 500;
        font-size: 0.81rem;
        color: #00001c;
      }
    }
  }
  .order_member {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #fff;
    margin-top: 0.63rem;
    .member_detail {
      padding: 0.9rem 0.63rem;
      background: #f5f5f5;
      border-radius: 0.63rem;
      box-sizing: border-box;
      margin-top: 0.56rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .detail {
        width: 70%;
        text-align: left;
      }
      .detail_r {
        width: 30%;
        flex-shrink: 0;
        text-align: left;
        margin-bottom: 0.94rem;
      }
      .detail_r:last-child {
        margin-bottom: 0;
      }
    }
    .tagBox {
      display: flex;
      margin-top: 0.59rem;
      flex-wrap: wrap;
      .tag {
        font-size: 0.69rem;
        color: #3b3b4a;
        padding: 0.22rem 0.34rem;
        border-radius: 0.25rem;
        border: 0.03rem solid #d6d6dc;
        margin-left: 0.38rem;
      }
      .tag:first-child {
        margin-left: 0;
      }
    }
    .member {
      display: flex;
      .member_r {
        display: flex;
        flex-direction: column;
        flex: 1;
        text-align: left;
        .member_r_t {
          font-weight: bold;
          font-size: 0.88rem;
        }
        .mobile {
          font-size: 0.75rem;
          color: #8e8e95;
          margin-top: 0.15rem;
        }
      }
      .image {
        flex-shrink: 0;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 50%;
        background: #aaaab3;
        margin-right: 0.28rem;
        img {
          width: 100%;
          height: 100%;
          border-radius: 50%;
        }
      }
    }
  }
  .InquiryResults_content {
    background: #fff;
    border-radius: 1rem !important;
    .van-cell {
      border-radius: 1rem !important;
    }
    .custom-title {
      width: 100%;
      text-align: left;
      font-size: 0.81rem;
      color: #6e6e79;
    }
    .custom-value {
      font-weight: 500;
      font-size: 0.81rem;
      color: #00001c;
    }
  }
}
</style>
